package com.unytech.project.entity.torrents.parameter;

import java.math.BigDecimal;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.unytech.project.entity.torrents.CommonEntity;

/**
 * 预警人员信息表
 * @author DolphinBoy
 * 记录预警人员的相关信息
 */
@Entity 
@Table(name="Person_B")
public class Person_B extends CommonEntity {
	/** 人员编码 */
	@Id @Column(name="PersonCD", length=6, nullable=false)
	private String personid;
	
	/** 人员名称 */
	@Column(name="Name",length=20, nullable=false)
	private String personname;
	
	/** 所在部门 */
	@ManyToOne(cascade={CascadeType.REFRESH,CascadeType.MERGE}, optional=false) 
	@JoinColumn(name="DeptCD")
	private Dept_B deptid;
	
	/** 是否是部门负责人 */
	@Column(name="IsHead", precision=1, scale=0, nullable=false)
	private BigDecimal personhead;
	
	/** 在部门中的职责 */
	@Column(name="Duty",length=500)
	private String personduty;
	
	/** 性别 */
	@Column(name="Sex",length=1)
	private String personsex;
	
	/** 单位 */
	@Column(name="Company",length=20)
	private String personcompany;
	
	/** 职务 */
	@Column(name="Position",length=10)
	private String personposition;
	
	/** 单位地址 */
	@Column(name="Address",length=200)
	private String personaddress;
	
	/** 移动电话 */
	@Column(name="Mobile",length=15)
	private String personmobile;
	
	/** 固定电话 */
	@Column(name="OfficeTel",length=20)
	private String personofficetel;

	public String getPersonid() {
		return personid;
	}

	public void setPersonid(String personid) {
		this.personid = personid;
	}

	public String getPersonname() {
		return personname;
	}

	public void setPersonname(String personname) {
		this.personname = personname;
	}

	public Dept_B getDeptid() {
		return deptid;
	}

	public void setDeptid(Dept_B deptid) {
		this.deptid = deptid;
	}

	public BigDecimal getPersonhead() {
		return personhead;
	}

	public void setPersonhead(BigDecimal personhead) {
		this.personhead = personhead;
	}

	public String getPersonduty() {
		return personduty;
	}

	public void setPersonduty(String personduty) {
		this.personduty = personduty;
	}

	public String getPersonsex() {
		return personsex;
	}

	public void setPersonsex(String personsex) {
		this.personsex = personsex;
	}

	public String getPersoncompany() {
		return personcompany;
	}

	public void setPersoncompany(String personcompany) {
		this.personcompany = personcompany;
	}

	public String getPersonposition() {
		return personposition;
	}

	public void setPersonposition(String personposition) {
		this.personposition = personposition;
	}

	public String getPersonaddress() {
		return personaddress;
	}

	public void setPersonaddress(String personaddress) {
		this.personaddress = personaddress;
	}

	public String getPersonmobile() {
		return personmobile;
	}

	public void setPersonmobile(String personmobile) {
		this.personmobile = personmobile;
	}

	public String getPersonofficetel() {
		return personofficetel;
	}

	public void setPersonofficetel(String personofficetel) {
		this.personofficetel = personofficetel;
	}
	
}
